package cn.maxhou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Register {
    @RequestMapping("/register")
    public String Register(String username,String password,Model model) {
        model.addAttribute("username", username);
        return "register";
    }

    @RequestMapping("/doregister")
    public String doRegister(String username,String password,Model model) {
        model.addAttribute("username", username);
        return "success";
    }
}
